package com.atguigu.collection;

/**
 * @author durant
 * @create 2021-10-21 10:22
 */
public class ArraysTest02 {
    public static void main(String[] args) {
        int[] arrs=new int[4];
        String[] str=new String[4];
        System.out.println("str的长度："+str.length);
        System.out.println(str);
//        System.out.println("int数组的默认值："+arrs[arrs.length-1]);
//        System.out.println("string数组的默认值："+str[str.length-1]);
        str=new String[5];
        System.out.println("str的长度："+str.length);
        System.out.println(str);
    }
}
